#
# Exception definitions
#

class FgsProxyError(Exception):
    """General error for the FGS proxy"""

    def __str__(self):
        err = Exception.__str__(self)
        if err != '':
            return self.__doc__ + ": " + err
        else:
            return self.__doc__

class FgsProxyInitalizationError(FgsProxyError):
    """Error during the initialization of the FGS proxy."""

class FgsProxyBackendUnavailableError(FgsProxyError):
    """FGS Backend is currently unavailable"""

class FgsProxyUnauthorizedError(FgsProxyError):
    """Authorization failed"""
